package constructor04;

public class Demo {
    public static void main(String[] args) {
        /**
         * 只要new对象就一定会调用构造方法
         */
        //Person p1 = new Person();//new Person()调用空参构造
        Person p2 = new Person("李四", 10, "男");
    }
}
